<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=rm-wz9912u5wtv99006eco.mysql.rds.aliyuncs.com;',
            'username' => 'root',
            'password' => 'mysoft@52',
            'charset' => 'utf8',
        ],
        'cache' => [
            'class' => 'yii\redis\Cache',
            'redis' => [
                'hostname' => 'r-uf6y3qnk1kahghl2skpd.redis.rds.aliyuncs.com',
                'port' => 6379,
                'database' => 0,
                'password' => '%5wO7Y4t'
            ]
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'r-uf6y3qnk1kahghl2skpd.redis.rds.aliyuncs.com',
            'port' => 6379,
            'database' => 0,
            'password' => '%5wO7Y4t',
        ],
        'dbSupplierBigdata' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=rds8508o09s32x10n4fs3o.mysql.rds.aliyuncs.com:3306;dbname=mycommunity_contractor_bigdata;',
            'username' => 'yunshequ',
            'password' => 'yunshequ95938',
            'charset' => 'utf8mb4',
        ],
        'mongodb' => [
            'class' => '\common\mongo\Connection',
            'dsn' => 'mongodb://106.14.94.136:27018',
        ],
        'queue' => [
            'class' => '\common\queue\RedisQueue',
            'hostname' => 'r-uf6y3qnk1kahghl2sk.redis.rds.aliyuncs.com',
            'port' => 6379,
            'database' => 0,
            'password' => '%5wO7Y4t'
        ],
        'mq' => [
            'class' => '\common\mq\alimns\AliMessageService',
            'accessId' => 'bz5CnJ8DYW2zMYuk',
            'accessKey' => 'kbwN4tL683w6NYDG0ayaSCVrxtLHim',
            'endPoint' => 'http://1132958195630943.mns.cn-shenzhen.aliyuncs.com/',
        ],
        'iQueue' => [
            'class' => 'iQueue\MessageQueue',
            'type' => 'alimns',
            'config' => [
                'accessId' => 'LTAI4FjT2YNRDEc31MWGKTqq',
                'accessKey' => 'los7f8nAReg60I14qhshbMwiHMJ5ns',
                'endPoint' => 'https://1132958195630943.mns.cn-shenzhen.aliyuncs.com/',
                'prefix' => '',
                'allowQueues' => [
                    \common\queue\QueueConstants::COMPANY_SUPPLIER_INDEX_QUEUE
                    , \common\queue\QueueConstants::BIG_DATA_SUPPLIER_INDEX_QUEUE
                    , \common\queue\QueueConstants::BIG_DATA_MATERIAL_INDEX_QUEUE
                ],
                'cryptInterface' => ''
            ],
        ],
        'elasticsearch' => [
            'class' => '\common\search\Connection',
            'auth' => ['username' => 'elastic', 'password' => 't$Ideov5yhaCpc4b'],
            'nodes' => [
                [
                    'http_address' => 'es-cn-45916vpe5000m25am.public.elasticsearch.aliyuncs.com:9200',
                ],
            ],
        ],
    ],
];
